﻿#pragma once
#ifndef STUDENTDB_H_
#define STUDENTDB_H_

#include "Student.h"
#include "Database.h"
#include <string>
#include <list>

class StudentDB :public Database
{

public:
	StudentDB();
	Student selectById(const std::string &i);
	list<Student> selectAll();//查询所有的学生
	void deleteById(const std::string &i);
	void update(Student &stu);
	void insert(Student &stu);
	list<Student> selectByLike(const std::string &i);//模糊搜索
	~StudentDB();
};
#endif // !STUDENTDB_H_
